home *** CD-ROM | disk | FTP | other *** search
/ cyber.net interactivo 1997 April / inter@ivo 1997-04.iso / cybint15 / bin / ano95.dxr / 00019.ls < prev    next >
Encoding:
Text File  |  1997-04-01  |  4.0 KB  |  159 lines

  1. on exitFrame
  2.   global act
  3.   if act = 0 then
  4.     HotSpots(33, 36)
  5.     if (the mouseCast = 14) and (the visible of sprite 3 = 0) then
  6.       set the visible of sprite 3 to 1
  7.     else
  8.       if (the mouseCast <> 14) and (the visible of sprite 3 = 1) then
  9.         set the visible of sprite 3 to 0
  10.       end if
  11.     end if
  12.   end if
  13.   if act = 0 then
  14.     if (the mouseCast = 15) and (the visible of sprite 5 = 0) then
  15.       set the visible of sprite 5 to 1
  16.     else
  17.       if (the mouseCast <> 15) and (the visible of sprite 5 = 1) then
  18.         set the visible of sprite 5 to 0
  19.       end if
  20.     end if
  21.   end if
  22.   if act = 0 then
  23.     if (the mouseCast = 16) and (the visible of sprite 7 = 0) then
  24.       set the visible of sprite 7 to 1
  25.     else
  26.       if (the mouseCast <> 16) and (the visible of sprite 7 = 1) then
  27.         set the visible of sprite 7 to 0
  28.       end if
  29.     end if
  30.   end if
  31.   if act = 0 then
  32.     if (the mouseCast = 17) and (the visible of sprite 9 = 0) then
  33.       set the visible of sprite 9 to 1
  34.     else
  35.       if (the mouseCast <> 17) and (the visible of sprite 9 = 1) then
  36.         set the visible of sprite 9 to 0
  37.       end if
  38.     end if
  39.   end if
  40.   if act = 0 then
  41.     if (the mouseCast = 18) and (the visible of sprite 11 = 0) then
  42.       set the visible of sprite 11 to 1
  43.     else
  44.       if (the mouseCast <> 18) and (the visible of sprite 11 = 1) then
  45.         set the visible of sprite 11 to 0
  46.       end if
  47.     end if
  48.   end if
  49.   if act = 0 then
  50.     if (the mouseCast = 26) or (the mouseCast = 27) then
  51.       if the visible of sprite 23 = 0 then
  52.         set the visible of sprite 23 to 1
  53.       end if
  54.     else
  55.       set the visible of sprite 23 to 0
  56.     end if
  57.   end if
  58.   if act = 0 then
  59.     if (the mouseCast = 37) or (the mouseCast = 38) then
  60.       if the visible of sprite 28 = 0 then
  61.         set the visible of sprite 28 to 1
  62.         set the visible of sprite 29 to 1
  63.       end if
  64.     else
  65.       set the visible of sprite 28 to 0
  66.       set the visible of sprite 29 to 0
  67.     end if
  68.   end if
  69.   if act = 1 then
  70.     if rollOver(38) or rollOver(39) then
  71.       cursor([901, 902])
  72.     else
  73.       cursor(-1)
  74.     end if
  75.   end if
  76.   go(the frame)
  77. end
  78.  
  79. on mouseDown
  80.   if the mouseCast = 14 then
  81.     set the visible of sprite 2 to 1
  82.   end if
  83.   if the mouseCast = 15 then
  84.     set the visible of sprite 4 to 1
  85.   end if
  86.   if the mouseCast = 16 then
  87.     set the visible of sprite 6 to 1
  88.   end if
  89.   if the mouseCast = 17 then
  90.     set the visible of sprite 8 to 1
  91.   end if
  92.   if the mouseCast = 18 then
  93.     set the visible of sprite 10 to 1
  94.   end if
  95.   set i to 20
  96.   set z to 12
  97.   repeat while i < 25
  98.     if the mouseCast = i then
  99.       set the visible of sprite z to 0
  100.     end if
  101.     set i to i + 1
  102.     set z to z + 1
  103.   end repeat
  104. end
  105.  
  106. on mouseUp
  107.   if the visible of sprite 2 = 1 then
  108.     set i to 12
  109.     repeat while i < 17
  110.       set the visible of sprite i to 0
  111.       set i to i + 1
  112.     end repeat
  113.     set the visible of sprite 2 to 0
  114.     set the visible of sprite 12 to 1
  115.   end if
  116.   if the visible of sprite 4 = 1 then
  117.     set i to 12
  118.     repeat while i < 17
  119.       set the visible of sprite i to 0
  120.       set i to i + 1
  121.     end repeat
  122.     set the visible of sprite 4 to 0
  123.   end if
  124.   if the visible of sprite 6 = 1 then
  125.     set i to 12
  126.     repeat while i < 17
  127.       set the visible of sprite i to 0
  128.       set i to i + 1
  129.     end repeat
  130.     set the visible of sprite 6 to 0
  131.     set the visible of sprite 14 to 1
  132.   end if
  133.   if the visible of sprite 8 = 1 then
  134.     set i to 12
  135.     repeat while i < 17
  136.       set the visible of sprite i to 0
  137.       set i to i + 1
  138.     end repeat
  139.     set the visible of sprite 8 to 0
  140.     set the visible of sprite 15 to 1
  141.   end if
  142.   if the visible of sprite 10 = 1 then
  143.     set i to 12
  144.     repeat while i < 17
  145.       set the visible of sprite i to 0
  146.       set i to i + 1
  147.     end repeat
  148.     set the visible of sprite 10 to 0
  149.     set the visible of sprite 16 to 1
  150.   end if
  151.   if (the mouseCast = 26) or (the mouseCast = 27) then
  152.     if the visible of sprite 23 = 0 then
  153.       set the visible of sprite 23 to 1
  154.     end if
  155.   else
  156.     set the visible of sprite 23 to 0
  157.   end if
  158. end
  159.